//
//  SumManager.m
//  LockTest
//
//  Created by ZhangBo on 2018/12/3.
//  Copyright © 2018 ZhangBo. All rights reserved.
//

#import "SumManager.h"

@implementation SumManager
- (SumManager *(^)(int value))add {
    return ^SumManager *(int value) {
        _result += value;
        return self;
    };
}

- (instancetype)manager:(int (^)(int result))sumBlock {
    _result = sumBlock(_result);
    return self;
}


@end
